-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable use-defusedxml codemod #95
Conversation
d9ea81c
to
bbd3d51
Compare
Codecov Report
@@ Coverage Diff @@
## main #95 +/- ##
==========================================
+ Coverage 95.72% 95.77% +0.05%
==========================================
Files 49 49
Lines 2012 2013 +1
==========================================
+ Hits 1926 1928 +2
+ Misses 86 85 -1
|
|
||
original_code, _ = original_and_expected_from_code_path(code_path, []) | ||
expected_new_code = """\ | ||
from io import StringIO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can now indent?
@@ -89,8 +89,10 @@ def dependencies(self) -> dict[Requirement, None]: | |||
self._lines = f.readlines() | |||
|
|||
return { | |||
Requirement(line): None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the intention here was order preservation? not sure but change LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that makes sense. We actually don't need that anymore since we preserve the original lines, but we still want to check for the presence of existing dependencies, and we want to do it on the basis of name only (and not version).
bbd3d51
to
15cd63f
Compare
Overview
Enable
use-defusedxml
codemodDescription
use-defusedxml
, added a description and integration test